﻿using App.Chat.Models;

namespace App.Chat.Application.Interface
{
    public interface IUserService
    {
        Task<string> RegisterAsync(User user);
        Task<Tuple<User, string>> LoginAsync(User user);
        Task<List<User>> FindUsersAsync(string? id, string? userName);
        Task<List<User>> FindUsersByIdsAsync(string[] ids);
        Task<User> UpdateNickNameAsync(string id, string nickName);
        Task ChangePwdAsync(string id, string oldPwd, string newPwd);
    }
}
